﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wuc_change_password.ascx.cs"
    Inherits="CarLoanSystemWeb.Page.ChangePassword.wuc_change_password" %>
<%@ Register Assembly="AjaxValidationSummary" Namespace="AjaxValidationSummary" TagPrefix="cc4" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<style type="text/css">
    .style5
    {
        font-size: small;
    }
    .style24
    {
        width: 7px;
        height: 19px;
    }
    .style30
    {
        height: 19px;
        width: 244px;
    }
    .style32
    {
        height: 19px;
        width: 247px;
    }
    .style33
    {
        width: 101px;
        height: 19px;
    }
    </style>
<div id="box_content">
    <div id="box_content_head">
        <h1>
            เปลี่ยนรหัสผ่าน
        </h1>
    </div>
    <div id="box_content_body">
        <table style="height: 62px; width: 412px">
            <tr>
                <td class="style33">
                    <span class="style5">ชื่อผู้ใช้งาน</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style32">
                    <asp:Label ID="lblUserName" runat="server" Text="xxxxxxxxxxxxxxxxxxxxxx"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style33">
                    <span class="style5">รหัสผ่านเก่า</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style32">
                    <asp:TextBox ID="txtOldPassword" runat="server" Width="176px" 
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator InitialValue="-1" ID="RequiredFieldValidator1" Display="Dynamic"
                        ValidationGroup="valOfficer" runat="server" ControlToValidate="txtOldPassword" Text="*"
                        ErrorMessage="กรุณากรอกรหัสผ่านเก่า" Style="color: #FF0000"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style33">
                    <span class="style5">รหัสผ่านใหม่</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style30">
                    <asp:TextBox ID="txtNewPassword" runat="server" Width="176px" 
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator InitialValue="-1" ID="RequiredFieldValidator2" Display="Dynamic"
                        ValidationGroup="valOfficer" runat="server" ControlToValidate="txtNewPassword" Text="*"
                        ErrorMessage="กรุณากรอกรหัสผ่านใหม่" Style="color: #FF0000"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style33">
                    <span class="style5">ยืนยันรหัสผ่านใหม่</span>
                </td>
                <td class="style24">
                    :
                </td>
                <td class="style30">
                    <asp:TextBox ID="txtNewPasswordConfirm" runat="server" Width="176px" 
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator InitialValue="-1" ID="RequiredFieldValidator3" Display="Dynamic"
                        ValidationGroup="valOfficer" runat="server" ControlToValidate="txtNewPasswordConfirm" Text="*"
                        ErrorMessage="กรุณากรอกยืนยันรหัสผ่านใหม่" Style="color: #FF0000"></asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
    </div>
    <div id="box_content_footer">
    </div>
    <div class="action" style="margin-top: 15px">
        <asp:HyperLink ID="hplBack" runat="server" CssClass="button cancel" NavigateUrl="~/Page/Main/MainPage.aspx">ยกเลิก</asp:HyperLink>
        <asp:LinkButton ID="btnSave" runat="server" ValidationGroup="valOfficer" CssClass="button save"
            OnClick="btnSave_Click">บันทึก</asp:LinkButton>
        <ajaxToolkit:ConfirmButtonExtender ID="btnSave_ConfirmButtonExtender" runat="server"
            ConfirmText="ต้องการจะบันทึกหรือไม่" Enabled="True" TargetControlID="btnSave">
        </ajaxToolkit:ConfirmButtonExtender>
    </div>
</div>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="validation_sum"
    ValidationGroup="valOfficer" ShowMessageBox="True" ShowSummary="False" />
